package pers.corvey.crawler.extract;

import java.io.IOException;

import pers.corvey.crawler.model.json.CelebrityJson;
import pers.corvey.crawler.util.DoubanMovieAPIUtils;
import pers.corvey.crawler.util.JsonUtils;

public class CelebrityExtract {

	public static CelebrityJson getCelebrityById(String id) 
			throws IOException {
		String api = DoubanMovieAPIUtils.getActorInfo(id);
		return JsonUtils.getObjectFromAPI(api, CelebrityJson.class);
	}
	
}
